Searched hist:bdbb4e29df8b790db50cb73ce25d23543329f05f (Results 1 – 4 of 4) sorted by last modified time
/linux/include/net/ |
H A D | netlink.h | diff bdbb4e29df8b790db50cb73ce25d23543329f05f Tue Oct 06 00:07:38 CEST 2020 Jakub Kicinski <kuba@kernel.org> netlink: add mask validation
We don't have good validation policy for existing unsigned int attrs which serve as flags (for new ones we could use NLA_BITFIELD32). With increased use of policy dumping having the validation be expressed as part of the policy is important. Add validation policy in form of a mask of supported/valid bits.
Support u64 in the uAPI to be future-proof, but really for now the embedded mask member can only hold 32 bits, so anything with bit 32+ set will always fail validation.
Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
|
/linux/lib/ |
H A D | nlattr.c | diff bdbb4e29df8b790db50cb73ce25d23543329f05f Tue Oct 06 00:07:38 CEST 2020 Jakub Kicinski <kuba@kernel.org> netlink: add mask validation
We don't have good validation policy for existing unsigned int attrs which serve as flags (for new ones we could use NLA_BITFIELD32). With increased use of policy dumping having the validation be expressed as part of the policy is important. Add validation policy in form of a mask of supported/valid bits.
Support u64 in the uAPI to be future-proof, but really for now the embedded mask member can only hold 32 bits, so anything with bit 32+ set will always fail validation.
Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
|
/linux/net/netlink/ |
H A D | policy.c | diff bdbb4e29df8b790db50cb73ce25d23543329f05f Tue Oct 06 00:07:38 CEST 2020 Jakub Kicinski <kuba@kernel.org> netlink: add mask validation
We don't have good validation policy for existing unsigned int attrs which serve as flags (for new ones we could use NLA_BITFIELD32). With increased use of policy dumping having the validation be expressed as part of the policy is important. Add validation policy in form of a mask of supported/valid bits.
Support u64 in the uAPI to be future-proof, but really for now the embedded mask member can only hold 32 bits, so anything with bit 32+ set will always fail validation.
Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
|
/linux/include/uapi/linux/ |
H A D | netlink.h | diff bdbb4e29df8b790db50cb73ce25d23543329f05f Tue Oct 06 00:07:38 CEST 2020 Jakub Kicinski <kuba@kernel.org> netlink: add mask validation
We don't have good validation policy for existing unsigned int attrs which serve as flags (for new ones we could use NLA_BITFIELD32). With increased use of policy dumping having the validation be expressed as part of the policy is important. Add validation policy in form of a mask of supported/valid bits.
Support u64 in the uAPI to be future-proof, but really for now the embedded mask member can only hold 32 bits, so anything with bit 32+ set will always fail validation.
Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
|